]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
osdWindow: Make sure to clear the hide timeout
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 24 Jun 2013 21:15:33 +0000 (17:15 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 24 Jun 2013 21:23:43 +0000 (17:23 -0400)
When the osd window is hidden based on the timeout, it accidentally
left the timeout ID in place. When a subsequent switcher popup came
up, it thought the OSD window was scheduled to be hidden and tried
to re-hide the actor. This caused the tween to be run along with
an extra call to enable_unredirect_for_screen.

js/ui/osdWindow.js

index f59c84c6473758162e1b598033327bc25cb1d48c..bb7d88894983a4b2e03b0b20702b8fb6aa50b4c0 100644 (file)
@@ -158,11 +158,11 @@ const OsdWindow = new Lang.Class({
             return;
 
         Mainloop.source_remove(this._hideTimeoutId);
-        this._hideTimeoutId = 0;
         this._hide();
     },
 
     _hide: function() {
+        this._hideTimeoutId = 0;
         Tweener.addTween(this.actor,
                          { opacity: 0,
                            time: FADE_TIME,